package com.malamute.system.entity;

import java.util.List;

import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.malamute.core.entity.BaseEntity;

/**
 * @author AceGuan gjybst@163.com
 * @description TODO
 * @date 2012-2-5 下午11:00:01
 * @version v1.0
 */
//@Entity
//@Table(name = "T_SYS_ADDRESS")
public class Address extends BaseEntity {
	private String name;
	// 没有添加表的一对多
	@OneToMany(mappedBy = "address", fetch = FetchType.EAGER)
	private List<User> users;

	/**
	 * 获取name
	 * 
	 * @return name
	 */

	public String getName() {
		return name;
	}

	/**
	 * 设置name
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取users
	 * 
	 * @return users
	 */

	public List<User> getUsers() {
		return users;
	}

	/**
	 * 设置users
	 * 
	 * @param users
	 */
	public void setUsers(List<User> users) {
		this.users = users;
	}

}
